//
//  Tips.m
//
//  Created by qdq on 15/1/10.
//  Copyright (c) 2015年  All rights reserved.
//

#import "DialogUtils.h"


@implementation DialogUtils

+(void)showEnterView:(NSString *)string{
    UIAlertView *tipsView =  [[UIAlertView alloc]initWithTitle:@"提示" message:string delegate:nil cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
    [tipsView show];
}

+(JGProgressHUD *)show{
    JGProgressHUD *HUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleClear];
    HUD.indicatorView = [[YSLodingView alloc]init];
    HUD.userInteractionEnabled = YES;
    [HUD showInView:theApp.window];
    return HUD;
}

+(void)showWithStatus:(NSString *)status{
    JGProgressHUD *HUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleDark];
     HUD.textLabel.text = status;
     HUD.indicatorView = nil;
    [HUD showInView:theApp.window];
    [HUD dismissAfterDelay:1.5];
}

+(JGProgressHUD *)showWithProgress{
    JGProgressHUD *HUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleDark];
    HUD.indicatorView = [[JGProgressHUDPieIndicatorView alloc] initWithHUDStyle:HUD.style]; //Or JGProgressHUDRingIndicatorView
    [HUD showInView:theApp.window];
    return HUD;
}



@end
